<?php
/**
 * @author ykm 2016-01-25
 * @describe 淘宝电子面单请求数据处理
 */

class ome_event_trigger_logistics_data_electron_taobao extends ome_event_trigger_logistics_data_electron_common {

    public function getDeliverySdf($delivery, $shop) {
        $sql = 'select w.waybill_number, e.position from sdb_logisticsmanager_waybill as w left join sdb_logisticsmanager_waybill_extend as e on(w.id = e.waybill_id) where w.waybill_number = "' . $delivery['logi_no'] . '"' . ' and w.channel_id = "' . $this->channel['channel_id'] . '"';
        $position = kernel::database()->selectrow($sql);
        $sdf = array();
        $sdf['delivery'] = $delivery;
        $sdf['shop'] = $shop;
        $sdf['position'] = $position['position'];
        return $sdf;
    }

    
}